#include "profileform.h"
#include "ui_profileform.h"

ProfileForm::ProfileForm(QWidget *parent) : QWidget(parent), ui(new Ui::ProfileForm)
{
    ui->setupUi(this);
//    TListValue *server;
//    TItemList *servers;
//    TBaseValue *user;
//    TBaseValue *password;

//    ui->widget->setSpecialList(&TValueBrowser::s_specialList);
//    servers = new TItemList(true);
//    servers->setItem(0, "g1");
//    servers->setItem(1, "g2");
//    servers->setItem(2, "g3");
//    server = new TListValue(ui->widget, "server", servers);
//    user = new TBaseValue(ui->widget, "user", 0);
//    password = new TBaseValue(ui->widget, "password", 0);
}

ProfileForm::~ProfileForm()
{
    delete ui;
}

void ProfileForm::changeEvent(QEvent *e)
{
    QWidget::changeEvent(e);
    switch (e->type())
    {
        case QEvent::LanguageChange:
            ui->retranslateUi(this);
            break;
        default:
            break;
    }
}
